{{extend 'layout.html'}}

<h2 class="fancy">PyForum - Add New Category</h2>

{{include 'fadmin/admin_options.html'}}

{{include 'default/err_check.html'}}

<form id="add-cat-form" method="post">
<fieldset id="add-cat-form-fields">
    <input type="hidden" id="form_submitted" name="form_submitted" value="1" />
    <table cellspacing="2" cellpadding="2">
    <tbody>
        <tr>
            <td><span class="warning">[*]</span> Category Name:</td>
            <td><input type="text" id="cat_name" name="cat_name" value="{{=request.get('cat_name', '')}}" style="width:400px;" /></td>
        </tr>
        <tr>
            <td>Category Description:</td>
            <td><textarea id="cat_desc" name="cat_desc" rows="0" cols="0" style="width:400px;height:150px;">{{=request.get('cat_desc', '')}}</textarea></td>
        </tr>
        <tr>
            <td style="vertical-align:top;">Visiblility To</td>
            <td style="vertical-align:top;">
                <select id="cat_visible" name="cat_visible">
                    <option value="{{=forum_memberships['FORUM_ADMINISTRATOR']}}">Forum Administrators</option>
                    <option value="">Public</option>
                    <option value="{{=forum_memberships['FORUM_ADMINISTRATOR']}},{{=forum_memberships['FORUM_MEMBER']}}" selected="selected">Regular Forum Members (+Admins)</option>
                </select>
            </td>
        </tr>
    </tbody>
    </table>
    <div class="top-separator">
        <input type="submit" id="submit" name="add_cat" value="Add" />
        <input type="submit" id="cancel" name="cancel" value="Cancel" />
    </div>
</fieldset>
</form>
